#include "user.h"
void ADC_InitAndCal(void)
{
#if (defined STM32F0)

	LL_RCC_HSI14_Enable();
	while(!LL_RCC_HSI14_IsReady())
	{
		;
	}
	LL_ADC_SetClock(ADC1, LL_ADC_CLOCK_ASYNC);
	LL_ADC_Enable(ADC1);
	LL_ADC_StartCalibration(ADC1);
	while(LL_ADC_IsCalibrationOnGoing(ADC1))
	{
		;
	}
	DBG_INFO("%u", LL_ADC_REG_ReadConversionData12(ADC1));
#endif
}
